<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/css/indexStyle.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
</head>
<body>

<!--导航页-->
<div class="headerBox" th:fragment="header">
    <div class="header">
        <div class="leftHeaderBox">
            <a th:href="@{/}">
                <img id="logoImage" class="headerLogo" src="../images/login-2.png">
            </a>
            <a th:href="@{/ourProject/index2}" class="headerTextStyle"
               style="margin-left: 50px; font-size: 30px; font-family: 幼圆; font-weight: bolder;">疫时达</a>
        </div>
        <div class="middleHeaderBox">
        </div>
        <div class="rightHeaderBox">
            <form th:action="@{/goods/getGoodsLikeName}" method="post">
                <div class="searchBox">
                    <input name="goodsName" class="searchInput" type="text" placeholder="请输入关键字搜索">
                    <button style="background-color: white" type="submit">
                        <i style="color: black" class="layui-icon">&#xe615;</i>
                    </button>
                </div>
            </form>
            <span style="width: 150px; margin-left: 100px; margin-top: -20px;">
                <a class="headerTextStyle" th:if="${session.user==null}" th:href="@{/ourProject/login}">登录</a>
            </span>
            <span style="width: 150px; margin-left: 40px; margin-top: -20px;">
                <a class="headerTextStyle" th:if="${session.user==null}" th:href="@{/ourProject/register}">注册</a>
            </span>

            <span style="width: 180px; margin-left: 80px; margin-top: -20px;">
                <a class="headerTextStyle" th:unless="${session.user==null}" th:href="@{/cart/toCart}">购物车</a>
            </span>
            <span style="width: 200px; margin-left: 40px; margin-top: -20px;">
                <a class="headerTextStyle" th:unless="${session.user==null}" th:href="@{/toUserDetail}">信息页</a>
            </span>
        </div>
    </div>
</div>
</body>
</html>